package com.lhd.service.impl;

import com.lhd.mapper.InformMapper;
import com.lhd.pojo.Inform;
import com.lhd.service.InformService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class InformServiceImpl implements InformService {
    @Autowired
    InformMapper informMapper;
    @Override
    public List<Inform> getAll() {
        return informMapper.getAll();
    }

    @Override
    public void update(Inform inform) {
        informMapper.update(inform);
    }

    @Override
    public void delete(Integer id) {
        informMapper.delete(id);
    }

    @Override
    public void add(Inform inform) {
        informMapper.add(inform);
    }
}
